﻿using System;

namespace Wedonek.RpcStore.Service.Model
{
        public class TaskItem
        {
                /// <summary>
                /// 任务项Id
                /// </summary>
                public Guid Id
                {
                        get;
                        set;
                }

                /// <summary>
                /// 任务项标题
                /// </summary>
                public string ItemTitle
                {
                        get;
                        set;
                }
                /// <summary>
                /// 排序位
                /// </summary>
                public int ItemSort
                {
                        get;
                        set;
                }
                /// <summary>
                /// 发送类型
                /// </summary>
                public TaskSendType SendType
                {
                        get;
                        set;
                }
                /// <summary>
                /// 失败后步骤
                /// </summary>
                public TaskSetup FailSetup
                {
                        get;
                        set;
                }
                /// <summary>
                /// 执行失败后执行下一步
                /// </summary>
                public int? FailNextSetup
                {
                        get;
                        set;
                }
                /// <summary>
                /// 成功后步骤
                /// </summary>
                public TaskSetup SuccessSetup
                {
                        get;
                        set;
                }
                /// <summary>
                /// 成功后下一步
                /// </summary>
                public int? NextSetup
                {
                        get;
                        set;
                }
                /// <summary>
                /// 执行成功时是否写入日志
                /// </summary>
                public bool IsWriteLog
                {
                        get;
                        set;
                }
                /// <summary>
                /// 最近一次是否执行成功
                /// </summary>
                public bool IsSuccess
                {
                        get;
                        set;
                }
                /// <summary>
                /// 错误码
                /// </summary>
                public long? ErrorCode
                {
                        get;
                        set;
                }
                /// <summary>
                /// 是否启用
                /// </summary>
                public bool IsEnable
                {
                        get;
                        set;
                }
        }
}
